<template> 
    <div class="paste-page clear-both"> 
        <div class="content">
            <paste-list @jump="jumpCardDetail" @optBtn="optBtn" v-for="(item,index) in list" :key="index" :item="item"></paste-list>  
        </div> 
    </div> 
</template>

<script>
import pasteList from './tpl/paste-list' 

export default {
    props: {
        list:{
            default:[],
            type:Array
        }
    },
    data () {
        return {
            
        }
    },
    methods:{
        optBtn(val,a){
            this.$emit('optBtn',val,a);
        },
        jumpCardDetail(item){ 
            let url=''; 
            url= `./../card-detail/main?forumId=${item.forum_id}`; 
            wx.navigateTo({url})  
        },
    },
    components: {
        pasteList
    },
}
</script>

<style scoped lang="scss">
.paste-page{ 
    padding:20rpx;
    box-sizing:border-box;
    background:#F7F7F7;
    min-height:100%; 
    
}
</style>
